package org.example.utils;

public class CurrentHolder{
    // 当前线程绑定的登录用户对象
    private static final ThreadLocal<Integer> CURRENT_LOCAL = new ThreadLocal<>();
    public static void set(Integer empId){
        CURRENT_LOCAL.set(empId);
    }
    public static Integer get(){
        return CURRENT_LOCAL.get();
    }
    public static void remove(){
        CURRENT_LOCAL.remove();
    }
    
}
